.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;
.source "AddAssetEvent.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# static fields
.field static final EVENT_ID:I = 0x9

.field static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field static final TAG:Ljava/lang/String;


# instance fields
.field private mExecutor:Ljava/util/concurrent/ExecutorService;

.field private final mLock:Ljava/lang/Object;

.field mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 59
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->TAG:Ljava/lang/String;

    .line 64
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method constructor <init>()V
    .locals 1

    .prologue
    .line 49
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;-><init>()V

    .line 69
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mLock:Ljava/lang/Object;

    return-void
.end method

.method private static checkInterrupted()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .prologue
    .line 237
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->isInterrupted()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 238
    new-instance v0, Ljava/lang/InterruptedException;

    const-string v1, "Asset\'s download has been cancelled."

    invoke-direct {v0, v1}, Ljava/lang/InterruptedException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 240
    :cond_0
    return-void
.end method

.method private static getExtensionFromContentType(Lorg/apache/http/HttpResponse;)Ljava/lang/String;
    .locals 10
    .parameter "response"

    .prologue
    const/4 v7, 0x0

    const/4 v9, 0x1

    .line 179
    const-string v8, "Content-Type"

    invoke-interface {p0, v8}, Lorg/apache/http/HttpResponse;->getFirstHeader(Ljava/lang/String;)Lorg/apache/http/Header;

    move-result-object v3

    .line 180
    .local v3, header:Lorg/apache/http/Header;
    if-eqz v3, :cond_0

    .line 181
    invoke-interface {v3}, Lorg/apache/http/Header;->getElements()[Lorg/apache/http/HeaderElement;

    move-result-object v0

    .local v0, arr$:[Lorg/apache/http/HeaderElement;
    array-length v5, v0

    .local v5, len$:I
    const/4 v4, 0x0

    .local v4, i$:I
    :goto_0
    if-ge v4, v5, :cond_0

    aget-object v1, v0, v4

    .line 182
    .local v1, element:Lorg/apache/http/HeaderElement;
    invoke-interface {v1}, Lorg/apache/http/HeaderElement;->getName()Ljava/lang/String;

    move-result-object v6

    .line 183
    .local v6, name:Ljava/lang/String;
    const-string v8, "/"

    invoke-virtual {v6, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 184
    const-string v8, "/"

    invoke-virtual {v6, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 185
    .local v2, elems:[Ljava/lang/String;
    array-length v8, v2

    if-le v8, v9, :cond_0

    aget-object v7, v2, v9

    .line 189
    .end local v0           #arr$:[Lorg/apache/http/HeaderElement;
    .end local v1           #element:Lorg/apache/http/HeaderElement;
    .end local v2           #elems:[Ljava/lang/String;
    .end local v4           #i$:I
    .end local v5           #len$:I
    .end local v6           #name:Ljava/lang/String;
    :cond_0
    return-object v7

    .line 181
    .restart local v0       #arr$:[Lorg/apache/http/HeaderElement;
    .restart local v1       #element:Lorg/apache/http/HeaderElement;
    .restart local v4       #i$:I
    .restart local v5       #len$:I
    .restart local v6       #name:Ljava/lang/String;
    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0
.end method

.method static getFileName(Ljava/lang/String;Lorg/apache/http/HttpResponse;)Ljava/lang/String;
    .locals 12
    .parameter "url"
    .parameter "response"

    .prologue
    const/4 v11, 0x0

    .line 150
    const-string v7, "Content-Disposition"

    invoke-interface {p1, v7}, Lorg/apache/http/HttpResponse;->getFirstHeader(Ljava/lang/String;)Lorg/apache/http/Header;

    move-result-object v3

    .line 151
    .local v3, header:Lorg/apache/http/Header;
    if-eqz v3, :cond_1

    .line 152
    invoke-interface {v3}, Lorg/apache/http/Header;->getElements()[Lorg/apache/http/HeaderElement;

    move-result-object v0

    .local v0, arr$:[Lorg/apache/http/HeaderElement;
    array-length v5, v0

    .local v5, len$:I
    const/4 v4, 0x0

    .local v4, i$:I
    :goto_0
    if-ge v4, v5, :cond_1

    aget-object v1, v0, v4

    .line 153
    .local v1, element:Lorg/apache/http/HeaderElement;
    invoke-interface {v1}, Lorg/apache/http/HeaderElement;->getName()Ljava/lang/String;

    move-result-object v7

    const-string v8, "filename"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 154
    invoke-interface {v1}, Lorg/apache/http/HeaderElement;->getValue()Ljava/lang/String;

    move-result-object v7

    .line 170
    .end local v0           #arr$:[Lorg/apache/http/HeaderElement;
    .end local v1           #element:Lorg/apache/http/HeaderElement;
    .end local v4           #i$:I
    .end local v5           #len$:I
    :goto_1
    return-object v7

    .line 152
    .restart local v0       #arr$:[Lorg/apache/http/HeaderElement;
    .restart local v1       #element:Lorg/apache/http/HeaderElement;
    .restart local v4       #i$:I
    .restart local v5       #len$:I
    :cond_0
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 159
    .end local v0           #arr$:[Lorg/apache/http/HeaderElement;
    .end local v1           #element:Lorg/apache/http/HeaderElement;
    .end local v4           #i$:I
    .end local v5           #len$:I
    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v7

    const/16 v8, 0x8

    invoke-virtual {v7, v11, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 160
    .local v6, name:Ljava/lang/StringBuilder;
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->getExtensionFromContentType(Lorg/apache/http/HttpResponse;)Ljava/lang/String;

    move-result-object v2

    .line 161
    .local v2, ext:Ljava/lang/String;
    if-eqz v2, :cond_2

    .line 162
    const-string v7, "."

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 170
    :goto_2
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    goto :goto_1

    .line 164
    :cond_2
    sget-object v7, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v8, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->TAG:Ljava/lang/String;

    const-string v9, "Could not determine {0} the file extension and type. The file will be written to SD card as is with no extension."

    const/4 v10, 0x1

    new-array v10, v10, [Ljava/lang/Object;

    aput-object p0, v10, v11

    invoke-virtual {v7, v8, v9, v10}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_2
.end method


# virtual methods
.method protected cleanUp()V
    .locals 1

    .prologue
    .line 244
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;->cleanUp()V

    .line 245
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    if-eqz v0, :cond_0

    .line 246
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdownNow()Ljava/util/List;

    .line 247
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    .line 249
    :cond_0
    return-void
.end method

.method fireError(Ljava/lang/String;)V
    .locals 2
    .parameter "message"

    .prologue
    .line 259
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const-string v1, "storePicture"

    invoke-virtual {v0, v1, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireErrorEvent(Ljava/lang/String;Ljava/lang/String;)V

    .line 260
    return-void
.end method

.method public fireEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)V
    .locals 5
    .parameter "mraidView"
    .parameter "args"

    .prologue
    const/4 v4, 0x0

    .line 83
    invoke-static {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->checkArgs([Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 103
    :goto_0
    return-void

    .line 86
    :cond_0
    invoke-static {}, Lcom/burstly/lib/util/Utils;->canWriteToSDCard()Z

    move-result v1

    if-nez v1, :cond_1

    .line 87
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->TAG:Ljava/lang/String;

    const-string v3, "SD card is not available. Skipped file saving"

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 88
    const-string v1, "Sd card is not available"

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->fireError(Ljava/lang/String;)V

    goto :goto_0

    .line 91
    :cond_1
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 92
    aget-object v0, p2, v4

    check-cast v0, Ljava/lang/String;

    .line 93
    .local v0, url:Ljava/lang/String;
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v2, "Confirm adding new asset"

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "The creative is going to add a new media to your media library. Allow ?\nMedia url is: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const-string v2, "Yes"

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent$1;

    invoke-direct {v3, p0, p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;Ljava/lang/String;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const-string v2, "No"

    invoke-virtual {v1, v2, p0}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0
.end method

.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 1
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 253
    const/4 v0, -0x2

    if-ne p2, v0, :cond_0

    .line 254
    const-string v0, "User cancelled"

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->fireError(Ljava/lang/String;)V

    .line 256
    :cond_0
    return-void
.end method

.method saveAsset(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "url"

    .prologue
    .line 112
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    if-nez v0, :cond_0

    .line 113
    invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    .line 115
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mExecutor:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent$2;

    invoke-direct {v1, p0, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;Ljava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    .line 140
    return-void
.end method

.method tryToStore(Lorg/apache/http/HttpEntity;Ljava/lang/String;)V
    .locals 11
    .parameter "entity"
    .parameter "fileName"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 201
    const/16 v8, 0x4000

    invoke-static {v8}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v1

    .line 202
    .local v1, buffer:Ljava/nio/ByteBuffer;
    invoke-interface {p1}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object v8

    invoke-static {v8}, Ljava/nio/channels/Channels;->newChannel(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;

    move-result-object v3

    .line 203
    .local v3, inChannel:Ljava/nio/channels/ReadableByteChannel;
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v7

    .line 204
    .local v7, sdCard:Ljava/io/File;
    new-instance v0, Ljava/io/File;

    const-string v8, "customAssets"

    invoke-direct {v0, v7, v8}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 205
    .local v0, audioDir:Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v8

    if-nez v8, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z

    move-result v8

    if-nez v8, :cond_0

    .line 206
    new-instance v8, Ljava/lang/Exception;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "Could not create output directory on SD card {0} to store the asset"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v8

    .line 209
    :cond_0
    new-instance v6, Ljava/io/File;

    invoke-direct {v6, v0, p2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 210
    .local v6, outFile:Ljava/io/File;
    new-instance v8, Ljava/io/FileOutputStream;

    invoke-direct {v8, v6}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    invoke-virtual {v8}, Ljava/io/FileOutputStream;->getChannel()Ljava/nio/channels/FileChannel;

    move-result-object v5

    .line 212
    .local v5, outChannel:Ljava/nio/channels/WritableByteChannel;
    :goto_0
    :try_start_0
    invoke-interface {v3, v1}, Ljava/nio/channels/ReadableByteChannel;->read(Ljava/nio/ByteBuffer;)I

    move-result v8

    if-lez v8, :cond_1

    .line 213
    invoke-virtual {v1}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;

    .line 214
    invoke-interface {v5, v1}, Ljava/nio/channels/WritableByteChannel;->write(Ljava/nio/ByteBuffer;)I

    .line 215
    invoke-virtual {v1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 216
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->checkInterrupted()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 220
    :catchall_0
    move-exception v8

    invoke-static {v5}, Lcom/burstly/lib/util/Utils;->closeStream(Ljava/io/Closeable;)V

    .line 221
    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->closeStream(Ljava/io/Closeable;)V

    throw v8

    .line 220
    :cond_1
    invoke-static {v5}, Lcom/burstly/lib/util/Utils;->closeStream(Ljava/io/Closeable;)V

    .line 221
    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->closeStream(Ljava/io/Closeable;)V

    .line 223
    iget-object v9, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mLock:Ljava/lang/Object;

    monitor-enter v9

    .line 224
    :try_start_1
    new-instance v4, Landroid/content/Intent;

    const-string v8, "android.intent.action.MEDIA_SCANNER_SCAN_FILE"

    invoke-direct {v4, v8}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 225
    .local v4, media:Landroid/content/Intent;
    invoke-static {v6}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v2

    .line 226
    .local v2, contentUri:Landroid/net/Uri;
    invoke-virtual {v4, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 227
    iget-object v8, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/AddAssetEvent;->mView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v8}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getContext()Landroid/content/Context;

    move-result-object v8

    invoke-virtual {v8, v4}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 228
    monitor-exit v9

    .line 229
    return-void

    .line 228
    .end local v2           #contentUri:Landroid/net/Uri;
    .end local v4           #media:Landroid/content/Intent;
    :catchall_1
    move-exception v8

    monitor-exit v9
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    throw v8
.end method
